package com.zjw.zy.heart.service.http.sources;

import com.zjw.zy.heart.bean.weather.WeatherDaysResult;
import com.zjw.zy.heart.bean.weather.WeatherHoursResult;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Query;

public interface IWeatherSourceService {

    @GET("/456456/weather/v001/day")
    Call<WeatherDaysResult> getWeather(@Header("X-APISpace-Token") String spaceKey, @Header("Authorization-Type") String type,
                                       @Query("days") int days, @Query("areacode") long areaCode);


    @GET("/456456/weather/v001/hour")
    Call<WeatherHoursResult> getHourWeather(@Header("X-APISpace-Token") String spaceKey, @Header("Authorization-Type") String type,
                                            @Query("hours") int hour, @Query("areacode") long areaCode);
}
